# -*- coding: utf-8 -*-
lista1 = [1,2,3,4,5,4,5,5,1,3]
lista2 = [x for x in set(lista1)]
print lista2

s1 = {'a','b','c','d','e'}
s2 = {'a', 'b'}
print s1 & s2, s1 ^ s2, s1 | s2 #&= iguais,interseccao, ^diferentes, | uniao
print s1 < s2, s1 - s2

print s1.union (s2), s1.intersection(s2) #uniao=|, interscecao= & os iguais

print "'''''''''''"
s3 = {6}
s4 = {5}
print s3 & s4, s3 ^ s4, s3 | s4
print s3 < s4, s3 - s4

print s3.union (s4), s3.intersection(s4)
